﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Mvcmediaplayer.Models.Video>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Video record
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

	<h2>Create</h2>

	<%Html.EnableClientValidation(); %>
	<% using (Html.BeginForm())
	   {%>
	   <fieldset>
	   <legend>Create Video</legend>
	   <p>
	   <%:Html.LabelFor(model=>model.Title) %>
	   <%:Html.TextBoxFor(model=>model.Title) %>
	   <%:Html.ValidationMessageFor(model=>model.Title) %>
	   </p>
	   <p>
	   <%:Html.LabelFor(model=>model.Url) %>
	   <%:Html.TextBoxFor(model=>model.Url) %>
	   <%:Html.ValidationMessageFor(model=>model.Url) %>
	   </p>
			 <p>
	   <%:Html.LabelFor(model=>model.Actors) %>
	   <%:Html.TextBoxFor(model=>model.Actors) %>
	   <%:Html.ValidationMessageFor(model=>model.Actors) %>
	   </p>
			 <p>
	   <%:Html.LabelFor(model=>model.Review) %>
	   <%:Html.TextBoxFor(model=>model.Review) %>
	   <%:Html.ValidationMessageFor(model=>model.Review) %>
	   </p>
	   <p>
	   <%:Html.LabelFor(model=>model.Year) %>
	   <%:Html.DropDownList("Years",new SelectList(ViewData["Years"] as IEnumerable)) %>
	   </p>
	   <p>
		<%:Html.LabelFor(model=>model.image) %>
		<%:Html.TextBoxFor(model=>model.image) %>
	   </p>
	   </fieldset>
	<%} %>
</asp:Content>
